package oj;

import java.util.Scanner;

public class Day9F {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(method(a, b));
        }
    }

    public static int method(int a, int b) {
        int sum = 0;
        if ((a == 1 && b >= 1) || (b == 1 && a >= 1)) {
            return a + b;
        }
        return method(a-1,b)+method(b-1,a);
    }
}


